#ifndef BITSTREAM_H_
#define BITSTREAM_H_

#include <vector>
#include <fstream>

class BitStream
{
private:
	std::vector<char> bytes;
	int bitIndex;

public:
	int pos;
	int remainder;
	int END;

	BitStream();
	BitStream(std::fstream &file);
	char& operator[](int index);
	int get(int size = 1);
	void put(int number, int size = 1);
	int length();
};

#endif /* BITSTREAM_H_ */
